import axios from "../request";

// 获取角色列表
export const getRoleApi = (params) =>
	axios({
		url: "/system/role",
		params,
	});

// 新增角色
export const addRoleApi = (data) =>
	axios({
		url: "/system/role",
		method: "post",
		data,
	});

// 编辑角色
export const editRoleApi = (data) =>
	axios({
		url: "/system/role",
		method: "put",
		data,
	});

// 删除角色
export const deleteRoleApi = (data) =>
	axios({
		url: "/system/role",
		method: "delete",
		data,
	});
